#ifndef BLUETOOTH_INTERFACE_H
#define BLUETOOTH_INTERFACE_H
#include <string.h>

#ifdef __ANDROID__
#include <jni.h>
//
extern JNIEnv * g_env;
#endif

int BTInit(const char *BTAddress);

int BTFree(void);

int BTWrite(char *buf, int offset, int count);

int BTRead(char *buf, int offset, int count);

int BTSelect(void);

int BTClear(void);

#ifdef __ANDROID__
struct gBTCommClassInfo{
    jclass clazz;
    jobject object;
	jmethodID BluetoothInit;
	jmethodID BluetoothFree;
	jmethodID BluetoothWrite;
	jmethodID BluetoothRead;
	jmethodID BluetoothSelect;
};

extern struct gBTCommClassInfo gBluetoothCommuClassInfo;
#endif

#endif

